﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT045 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;

    [Description("Hour")]
    public Tag174 Hour_174
    {
      get
      {
        return new Tag174((SwiftElement) this, 0, (SwiftDefinitionElement) MT045.U0002);
      }
    }

    [Description("Hour")]
    public Tag174 Tag174_Hour
    {
      get
      {
        return this.Hour_174;
      }
    }

    public MT045()
      : base(true)
    {
    }

    public MT045(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT045.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT045.MessageDefinition = new SwiftMessageDefinition("MT045", "Daily Check Time Change Request");
      MT045.U0002 = new SwiftTagDefinition("Hour_174", "Hour");
      MT045.U0002.TagName = "{174:";
      MT045.U0003 = new SwiftTagSubItemDefinition("Hour", "Hour");
      MT045.U0002.Elements.Add((SwiftDefinitionElement) MT045.U0003);
      MT045.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT045.U0002);
    }
  }
}
